package com.java.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import javax.validation.constraints.NotBlank;

/**
 * 角色资源关联
 * 
 * @author jl
 * @since 2020-10-09 09:30:58
 */
@Data
@TableName("role_resource")
public class RoleResource implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
    @TableId(type = IdType.INPUT)
    private String id;
	/**
	 * 角色|id
	 */
    @NotBlank(message = "角色|id不能为空")
    private String roleId;
	/**
	 * 资源|id
	 */
    @NotBlank(message = "资源|id不能为空")
    private String resourceId;

}
